package cool.collection;

import java.util.*;

public class TableTest {
    public static void main(String args[]){
        Map<String,Object> map01=new HashMap<>();
        map01.put("学号",10001);
        map01.put("姓名","高高");
        map01.put("年龄",25);
        Map<String,Object> map02=new HashMap<>();
        map02.put("学号",10002);
        map02.put("姓名","闪闪");
        map02.put("年龄",22);
        Map<String,Object> map03=new HashMap<>();
        map03.put("学号",10003);
        map03.put("姓名","青青");
        map03.put("年龄",20);
        List<Map<String,Object>> list=new ArrayList<>();
        list.add(map01);
        list.add(map02);
        list.add(map03);
        for(int i=0;i<list.size();i++){
            Iterator<String> en = list.get(i).keySet().iterator();
            while (en.hasNext()){
                System.out.print(" "+list.get(i).get(en.next()));
            }


        }

    }
}
